<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../../static/img/hospitalIOCt.ico">

    <title>登陆</title>

    <!-- Bootstrap core CSS -->
    <link href="../../../static/css/bootstrap.min.css" rel="stylesheet">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="../../../static/css/bootstrapDemo/ie10-viewport-bug-workaround.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="../../../static/css/bootstrapDemo/signin.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="../../../static/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<div class="container">

    {% for message in get_flashed_messages() %}
        <div class="alert alert-warning">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
            {{ message }}
        </div>
    {% endfor %}
    <form class="form-signin" method="post">

        <div class="row">
            <h2 class="form-signin-heading col-xs-12">请登录</h2>

            {{ formHtml.hidden_tag() }}

            {{ formHtml.email(class="form-control",placeholder="邮箱") }}

            {% if formHtml.email.errors %}
                {% for e in formHtml.email.errors %}
                    <p class="help-block" style="color: red">{{ e }}</p>
                {% endfor %}
            {% else %}
                <br>
            {% endif %}


            {#      <p class="help-block" style="color: red">{{ formHtml.userEmail.errors}}</p>#}
            {{ formHtml.password(class="form-control",placeholder="密码") }}

            {% if formHtml.password.errors %}
                {% for e in formHtml.password.errors %}
                    <p class="help-block" style="color: red">{{ e }}</p>
                {% endfor %}
            {% endif %}

            <div class="checkbox">
                <label>
                    <input type="checkbox" value="remember-me"> 记住我
                </label>
            </div>
            {#            <div class="g-recaptcha" data-sitekey="6LeWqhAUAAAAAHCc18ERrNPCAJ8zbPElvmRkciaE"></div>#}
            <br>
            <button class="btn btn-lg btn-primary btn-block" type="submit">登陆</button>

            <br>
            <a href="register.html">
                <button class="btn btn-lg btn-primary btn-block" type="button">注册</button>
            </a>
        </div>
    </form>

</div> <!-- /container -->

{#<script src='https://www.google.com/recaptcha/api.js'></script>#}

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../../../static/js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>
